<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>sqs.generator</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="sqs-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="sqs-module.html">Package&nbsp;sqs</a> ::
        Module&nbsp;generator
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="sqs.generator-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="sqs.generator-module.html">Module sqs.generator</a></h1>
<pre class="py-src">
<tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-0" class="py-name" targets="Package sqs=sqs-module.html"><a title="sqs" class="py-name" href="#" onclick="return doclink('link-0', 'sqs', 'link-0');">sqs</a></tt></tt> </tt>
<tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">re</tt> </tt>
<tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">sha</tt> </tt>
<tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">hmac</tt> </tt>
<tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">time</tt> </tt>
<tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">base64</tt> </tt>
<tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">urllib</tt> </tt>
<tt class="py-lineno">  8</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno">  9</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt id="link-1" class="py-name" targets="Variable sqs.connection.DEFAULT_CONTENT_TYPE=sqs.connection-module.html#DEFAULT_CONTENT_TYPE,Variable sqs.generator.DEFAULT_CONTENT_TYPE=sqs.generator-module.html#DEFAULT_CONTENT_TYPE"><a title="sqs.connection.DEFAULT_CONTENT_TYPE
sqs.generator.DEFAULT_CONTENT_TYPE" class="py-name" href="#" onclick="return doclink('link-1', 'DEFAULT_CONTENT_TYPE', 'link-1');">DEFAULT_CONTENT_TYPE</a></tt></tt> <tt class="py-op">=</tt> <tt class="py-string">'text/plain'</tt> </tt>
<tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt id="link-2" class="py-name" targets="Variable sqs.connection.PORTS_BY_SECURITY=sqs.connection-module.html#PORTS_BY_SECURITY,Variable sqs.generator.PORTS_BY_SECURITY=sqs.generator-module.html#PORTS_BY_SECURITY"><a title="sqs.connection.PORTS_BY_SECURITY
sqs.generator.PORTS_BY_SECURITY" class="py-name" href="#" onclick="return doclink('link-2', 'PORTS_BY_SECURITY', 'link-2');">PORTS_BY_SECURITY</a></tt></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> <tt class="py-number">443</tt><tt class="py-op">,</tt> <tt class="py-name">False</tt><tt class="py-op">:</tt> <tt class="py-number">80</tt> <tt class="py-op">}</tt> </tt>
<tt class="py-lineno"> 12</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt id="link-3" class="py-name" targets="Variable sqs.generator.DEFAULT_EXPIRES_IN=sqs.generator-module.html#DEFAULT_EXPIRES_IN"><a title="sqs.generator.DEFAULT_EXPIRES_IN" class="py-name" href="#" onclick="return doclink('link-3', 'DEFAULT_EXPIRES_IN', 'link-3');">DEFAULT_EXPIRES_IN</a></tt></tt> <tt class="py-op">=</tt> <tt class="py-number">60</tt> </tt>
<tt class="py-lineno"> 14</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator"></a><div id="SQSGenerator-def"><tt class="py-lineno"> 15</tt> <a class="py-toggle" href="#" id="SQSGenerator-toggle" onclick="return toggle('SQSGenerator');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html">SQSGenerator</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="SQSGenerator-expanded"><tt class="py-lineno"> 16</tt>  <tt class="py-line">    <tt class="py-docstring">"""</tt> </tt>
<tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-docstring">    Generator class</tt> </tt>
<tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt class="py-docstring">    Objects of this class are used for generating authenticated URLs for accessing</tt> </tt>
<tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt class="py-docstring">    Amazon's SQS service.</tt> </tt>
<tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="SQSGenerator.__init__"></a><div id="SQSGenerator.__init__-def"><tt class="py-lineno"> 22</tt> <a class="py-toggle" href="#" id="SQSGenerator.__init__-toggle" onclick="return toggle('SQSGenerator.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">pub_key</tt><tt class="py-op">,</tt> <tt class="py-param">priv_key</tt><tt class="py-op">,</tt> <tt class="py-param">host</tt><tt class="py-op">=</tt><tt id="link-4" class="py-name"><a title="sqs" class="py-name" href="#" onclick="return doclink('link-4', 'sqs', 'link-0');">sqs</a></tt></tt><tt class="py-op">.</tt><tt id="link-5" class="py-name" targets="Variable sqs.DEFAULT_HOST=sqs-module.html#DEFAULT_HOST"><a title="sqs.DEFAULT_HOST" class="py-name" href="#" onclick="return doclink('link-5', 'DEFAULT_HOST', 'link-5');">DEFAULT_HOST</a></tt></tt><tt class="py-op">,</tt> <tt class="py-param">port</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">secure</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator.__init__-expanded"><tt class="py-lineno"> 23</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_pub_key</tt> <tt class="py-op">=</tt> <tt class="py-name">pub_key</tt> </tt>
<tt class="py-lineno"> 24</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_priv_key</tt> <tt class="py-op">=</tt> <tt class="py-name">priv_key</tt> </tt>
<tt class="py-lineno"> 25</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_host</tt> <tt class="py-op">=</tt> <tt class="py-name">host</tt> </tt>
<tt class="py-lineno"> 26</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">port</tt><tt class="py-op">:</tt> </tt>
<tt class="py-lineno"> 27</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_port</tt> <tt class="py-op">=</tt> <tt id="link-6" class="py-name"><a title="sqs.connection.PORTS_BY_SECURITY
sqs.generator.PORTS_BY_SECURITY" class="py-name" href="#" onclick="return doclink('link-6', 'PORTS_BY_SECURITY', 'link-2');">PORTS_BY_SECURITY</a></tt></tt><tt class="py-op">[</tt><tt class="py-name">secure</tt><tt class="py-op">]</tt> </tt>
<tt class="py-lineno"> 28</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<tt class="py-lineno"> 29</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_port</tt> <tt class="py-op">=</tt> <tt class="py-name">port</tt> </tt>
<tt class="py-lineno"> 30</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">secure</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<tt class="py-lineno"> 31</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">protocol</tt> <tt class="py-op">=</tt> <tt class="py-string">'https'</tt> </tt>
<tt class="py-lineno"> 32</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<tt class="py-lineno"> 33</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">protocol</tt> <tt class="py-op">=</tt> <tt class="py-string">'http'</tt> </tt>
<tt class="py-lineno"> 34</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_secure</tt> <tt class="py-op">=</tt> <tt class="py-name">secure</tt> </tt>
<tt class="py-lineno"> 35</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">server_name</tt> <tt class="py-op">=</tt> <tt class="py-string">"%s:%d"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_host</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_port</tt><tt class="py-op">)</tt> </tt>
<tt class="py-lineno"> 36</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_expires_in</tt> <tt class="py-op">=</tt> <tt id="link-7" class="py-name"><a title="sqs.generator.DEFAULT_EXPIRES_IN" class="py-name" href="#" onclick="return doclink('link-7', 'DEFAULT_EXPIRES_IN', 'link-3');">DEFAULT_EXPIRES_IN</a></tt></tt> </tt>
<tt class="py-lineno"> 37</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_expires</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div><tt class="py-lineno"> 38</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno"> 39</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator.set_expires_in"></a><div id="SQSGenerator.set_expires_in-def"><tt class="py-lineno"> 40</tt> <a class="py-toggle" href="#" id="SQSGenerator.set_expires_in-toggle" onclick="return toggle('SQSGenerator.set_expires_in');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#set_expires_in">set_expires_in</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">expires_in</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator.set_expires_in-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator.set_expires_in-expanded"><tt class="py-lineno"> 41</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<tt class="py-lineno"> 42</tt>  <tt class="py-line"><tt class="py-docstring">        Set relative expiration time from the url creation moment.</tt> </tt>
<tt class="py-lineno"> 43</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<tt class="py-lineno"> 44</tt>  <tt class="py-line"><tt class="py-docstring">        @param expires_in: Relative expiration time</tt> </tt>
<tt class="py-lineno"> 45</tt>  <tt class="py-line"><tt class="py-docstring">        @type  expires_in: int</tt> </tt>
<tt class="py-lineno"> 46</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<tt class="py-lineno"> 47</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_expires_in</tt> <tt class="py-op">=</tt> <tt class="py-name">expires_in</tt> </tt>
<tt class="py-lineno"> 48</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_expires</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div><tt class="py-lineno"> 49</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno"> 50</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator.set_expires"></a><div id="SQSGenerator.set_expires-def"><tt class="py-lineno"> 51</tt> <a class="py-toggle" href="#" id="SQSGenerator.set_expires-toggle" onclick="return toggle('SQSGenerator.set_expires');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#set_expires">set_expires</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">expires</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator.set_expires-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator.set_expires-expanded"><tt class="py-lineno"> 52</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<tt class="py-lineno"> 53</tt>  <tt class="py-line"><tt class="py-docstring">        Set absolute expiration time.</tt> </tt>
<tt class="py-lineno"> 54</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<tt class="py-lineno"> 55</tt>  <tt class="py-line"><tt class="py-docstring">        @param expires: Absolute expiration time</tt> </tt>
<tt class="py-lineno"> 56</tt>  <tt class="py-line"><tt class="py-docstring">        @type  expires: time.time()</tt> </tt>
<tt class="py-lineno"> 57</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<tt class="py-lineno"> 58</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_expires</tt> <tt class="py-op">=</tt> <tt class="py-name">expires</tt> </tt>
<tt class="py-lineno"> 59</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_expires_in</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div><tt class="py-lineno"> 60</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno"> 61</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator._auth_header_value"></a><div id="SQSGenerator._auth_header_value-def"><tt class="py-lineno"> 62</tt> <a class="py-toggle" href="#" id="SQSGenerator._auth_header_value-toggle" onclick="return toggle('SQSGenerator._auth_header_value');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#_auth_header_value">_auth_header_value</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">action</tt><tt class="py-op">,</tt> <tt class="py-param">timestamp</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator._auth_header_value-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator._auth_header_value-expanded"><tt class="py-lineno"> 63</tt>  <tt class="py-line">        <tt class="py-name">auth_str</tt> <tt class="py-op">=</tt> <tt class="py-string">"%s%s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">action</tt><tt class="py-op">,</tt> <tt class="py-name">timestamp</tt><tt class="py-op">)</tt> </tt>
<tt class="py-lineno"> 64</tt>  <tt class="py-line">        <tt class="py-name">auth_str</tt> <tt class="py-op">=</tt> <tt class="py-name">base64</tt><tt class="py-op">.</tt><tt class="py-name">encodestring</tt><tt class="py-op">(</tt> </tt>
<tt class="py-lineno"> 65</tt>  <tt class="py-line">            <tt class="py-name">hmac</tt><tt class="py-op">.</tt><tt class="py-name">new</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_priv_key</tt><tt class="py-op">,</tt> <tt class="py-name">auth_str</tt><tt class="py-op">,</tt> <tt class="py-name">sha</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">digest</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">strip</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<tt class="py-lineno"> 66</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">urllib</tt><tt class="py-op">.</tt><tt class="py-name">quote_plus</tt><tt class="py-op">(</tt><tt class="py-name">auth_str</tt><tt class="py-op">)</tt> </tt>
</div><tt class="py-lineno"> 67</tt>  <tt class="py-line">         </tt>
<tt class="py-lineno"> 68</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno"> 69</tt>  <tt class="py-line"><tt class="py-comment">##    def _headers(self, headers=None, length=None):</tt> </tt>
<tt class="py-lineno"> 70</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##        if not headers:</tt> </tt>
<tt class="py-lineno"> 71</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##            headers = {}</tt> </tt>
<tt class="py-lineno"> 72</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##        if not headers.has_key('Date'):</tt> </tt>
<tt class="py-lineno"> 73</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##            headers["Date"] = time.strftime("%a, %d %b %Y %H:%M:%S GMT", time.gmtime())</tt> </tt>
<tt class="py-lineno"> 74</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##        if not headers.has_key('AWS-Version'):</tt> </tt>
<tt class="py-lineno"> 75</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##            headers['AWS-Version'] = sqs.VERSION</tt> </tt>
<tt class="py-lineno"> 76</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##        if not headers.has_key('Content-Type'):</tt> </tt>
<tt class="py-lineno"> 77</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##            headers['Content-Type'] = DEFAULT_CONTENT_TYPE</tt> </tt>
<tt class="py-lineno"> 78</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##        if not headers.has_key('Content-MD5'):</tt> </tt>
<tt class="py-lineno"> 79</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##            headers['Content-MD5'] = ''</tt> </tt>
<tt class="py-lineno"> 80</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##        if not headers.has_key('Content-Length'):</tt> </tt>
<tt class="py-lineno"> 81</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##            if length is not None:</tt> </tt>
<tt class="py-lineno"> 82</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##                headers['Content-Length'] = length</tt> </tt>
<tt class="py-lineno"> 83</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##            else:</tt> </tt>
<tt class="py-lineno"> 84</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##                headers['Content-Length'] = 0</tt> </tt>
<tt class="py-lineno"> 85</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##        return headers</tt> </tt>
<tt class="py-lineno"> 86</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<tt class="py-lineno"> 87</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator._params"></a><div id="SQSGenerator._params-def"><tt class="py-lineno"> 88</tt> <a class="py-toggle" href="#" id="SQSGenerator._params-toggle" onclick="return toggle('SQSGenerator._params');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#_params">_params</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">params</tt><tt class="py-op">,</tt> <tt class="py-param">acl</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator._params-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator._params-expanded"><tt class="py-lineno"> 89</tt>  <tt class="py-line">        <tt class="py-name">p</tt> <tt class="py-op">=</tt> <tt class="py-string">''</tt> </tt>
<tt class="py-lineno"> 90</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">params</tt><tt class="py-op">:</tt> </tt>
<tt class="py-lineno"> 91</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">acl</tt><tt class="py-op">:</tt> </tt>
<tt class="py-lineno"> 92</tt>  <tt class="py-line">                <tt class="py-name">arg_div</tt> <tt class="py-op">=</tt> <tt class="py-string">'&amp;'</tt> </tt>
<tt class="py-lineno"> 93</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<tt class="py-lineno"> 94</tt>  <tt class="py-line">                <tt class="py-name">arg_div</tt> <tt class="py-op">=</tt> <tt class="py-string">'?'</tt> </tt>
<tt class="py-lineno"> 95</tt>  <tt class="py-line">            <tt class="py-name">p</tt> <tt class="py-op">=</tt> <tt class="py-name">arg_div</tt> <tt class="py-op">+</tt> <tt class="py-name">urllib</tt><tt class="py-op">.</tt><tt class="py-name">urlencode</tt><tt class="py-op">(</tt><tt class="py-name">params</tt><tt class="py-op">)</tt> </tt>
<tt class="py-lineno"> 96</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">p</tt> </tt>
</div><tt class="py-lineno"> 97</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno"> 98</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator._path"></a><div id="SQSGenerator._path-def"><tt class="py-lineno"> 99</tt> <a class="py-toggle" href="#" id="SQSGenerator._path-toggle" onclick="return toggle('SQSGenerator._path');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#_path">_path</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">queue</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">message</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">acl</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator._path-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator._path-expanded"><tt class="py-lineno">100</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">queue</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<tt class="py-lineno">101</tt>  <tt class="py-line">            <tt class="py-name">path</tt> <tt class="py-op">=</tt> <tt class="py-string">"/"</tt> </tt>
<tt class="py-lineno">102</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<tt class="py-lineno">103</tt>  <tt class="py-line">            <tt class="py-name">path</tt> <tt class="py-op">=</tt> <tt class="py-string">'/'</tt> <tt class="py-op">+</tt> <tt class="py-name">queue</tt> </tt>
<tt class="py-lineno">104</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">message</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<tt class="py-lineno">105</tt>  <tt class="py-line">                <tt class="py-name">path</tt> <tt class="py-op">+=</tt> <tt class="py-string">'/'</tt> <tt class="py-op">+</tt> <tt class="py-name">message</tt> </tt>
<tt class="py-lineno">106</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">acl</tt><tt class="py-op">:</tt> </tt>
<tt class="py-lineno">107</tt>  <tt class="py-line">            <tt class="py-name">path</tt> <tt class="py-op">+=</tt> <tt class="py-string">'?acl'</tt> </tt>
<tt class="py-lineno">108</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">path</tt> </tt>
</div><tt class="py-lineno">109</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno">110</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno">111</tt>  <tt class="py-line"><tt class="py-comment">##    def _io_len(self, io):</tt> </tt>
<tt class="py-lineno">112</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##        if hasattr(io, "len"):</tt> </tt>
<tt class="py-lineno">113</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##            return io.len</tt> </tt>
<tt class="py-lineno">114</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##        o_pos = io.tell()</tt> </tt>
<tt class="py-lineno">115</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##        io.seek(0, 2)</tt> </tt>
<tt class="py-lineno">116</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##        length = io.tell() - o_pos</tt> </tt>
<tt class="py-lineno">117</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##        io.seek(o_pos, 0)</tt> </tt>
<tt class="py-lineno">118</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##        return length</tt> </tt>
<tt class="py-lineno">119</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<tt class="py-lineno">120</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator._generate"></a><div id="SQSGenerator._generate-def"><tt class="py-lineno">121</tt> <a class="py-toggle" href="#" id="SQSGenerator._generate-toggle" onclick="return toggle('SQSGenerator._generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#_generate">_generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">method</tt><tt class="py-op">,</tt> <tt class="py-param">queue</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">message</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">send_io</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">params</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">headers</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">acl</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator._generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator._generate-expanded"><tt class="py-lineno">122</tt>  <tt class="py-line">        <tt class="py-name">expires</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<tt class="py-lineno">123</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_expires_in</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<tt class="py-lineno">124</tt>  <tt class="py-line">            <tt class="py-name">expires</tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_expires_in</tt><tt class="py-op">)</tt> </tt>
<tt class="py-lineno">125</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_expires</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<tt class="py-lineno">126</tt>  <tt class="py-line">            <tt class="py-name">expires</tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_expires</tt><tt class="py-op">)</tt> </tt>
<tt class="py-lineno">127</tt>  <tt class="py-line">        <tt class="py-name">expires_str</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">strftime</tt><tt class="py-op">(</tt><tt class="py-string">"%Y-%m-%dT%XZ"</tt><tt class="py-op">,</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">gmtime</tt><tt class="py-op">(</tt><tt class="py-name">expires</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<tt class="py-lineno">128</tt>  <tt class="py-line">        <tt class="py-name">path</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-8" class="py-name" targets="Method sqs.connection.SQSConnection._path()=sqs.connection.SQSConnection-class.html#_path,Method sqs.generator.SQSGenerator._path()=sqs.generator.SQSGenerator-class.html#_path"><a title="sqs.connection.SQSConnection._path
sqs.generator.SQSGenerator._path" class="py-name" href="#" onclick="return doclink('link-8', '_path', 'link-8');">_path</a></tt></tt><tt class="py-op">(</tt><tt class="py-name">queue</tt><tt class="py-op">,</tt> <tt class="py-name">message</tt><tt class="py-op">,</tt> <tt class="py-name">acl</tt><tt class="py-op">)</tt> </tt>
<tt class="py-lineno">129</tt>  <tt class="py-line"><tt class="py-comment">##        length = None</tt> </tt>
<tt class="py-lineno">130</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##        if isinstance(headers, dict) and headers.has_key("Content-Length"):</tt> </tt>
<tt class="py-lineno">131</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##            length = headers["Content-Length"]</tt> </tt>
<tt class="py-lineno">132</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##        elif send_io is not None:</tt> </tt>
<tt class="py-lineno">133</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##            length = self._io_len(send_io)</tt> </tt>
<tt class="py-lineno">134</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##        headers = self._headers(headers=headers, length=length)</tt> </tt>
<tt class="py-lineno">135</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">signature</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-9" class="py-name" targets="Method sqs.connection.SQSConnection._auth_header_value()=sqs.connection.SQSConnection-class.html#_auth_header_value,Method sqs.generator.SQSGenerator._auth_header_value()=sqs.generator.SQSGenerator-class.html#_auth_header_value"><a title="sqs.connection.SQSConnection._auth_header_value
sqs.generator.SQSGenerator._auth_header_value" class="py-name" href="#" onclick="return doclink('link-9', '_auth_header_value', 'link-9');">_auth_header_value</a></tt></tt><tt class="py-op">(</tt><tt class="py-name">params</tt><tt class="py-op">[</tt><tt class="py-string">'Action'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">expires_str</tt><tt class="py-op">)</tt> </tt>
<tt class="py-lineno">136</tt>  <tt class="py-line">        <tt class="py-name">path</tt> <tt class="py-op">+=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-10" class="py-name" targets="Method sqs.connection.SQSConnection._params()=sqs.connection.SQSConnection-class.html#_params,Method sqs.generator.SQSGenerator._params()=sqs.generator.SQSGenerator-class.html#_params"><a title="sqs.connection.SQSConnection._params
sqs.generator.SQSGenerator._params" class="py-name" href="#" onclick="return doclink('link-10', '_params', 'link-10');">_params</a></tt></tt><tt class="py-op">(</tt><tt class="py-name">params</tt><tt class="py-op">,</tt> <tt class="py-name">acl</tt><tt class="py-op">)</tt> </tt>
<tt class="py-lineno">137</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-string">'?'</tt> <tt class="py-keyword">in</tt> <tt class="py-name">path</tt><tt class="py-op">:</tt> </tt>
<tt class="py-lineno">138</tt>  <tt class="py-line">            <tt class="py-name">arg_div</tt> <tt class="py-op">=</tt> <tt class="py-string">'&amp;'</tt> </tt>
<tt class="py-lineno">139</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<tt class="py-lineno">140</tt>  <tt class="py-line">            <tt class="py-name">arg_div</tt> <tt class="py-op">=</tt> <tt class="py-string">'?'</tt> </tt>
<tt class="py-lineno">141</tt>  <tt class="py-line">        <tt class="py-name">query_part</tt> <tt class="py-op">=</tt> <tt class="py-string">"Expires=%s&amp;AWSAccessKeyId=%s&amp;Version=%s&amp;Signature=%s"</tt> <tt class="py-op">%</tt> \ </tt>
<tt class="py-lineno">142</tt>  <tt class="py-line">                     <tt class="py-op">(</tt><tt class="py-name">expires_str</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_pub_key</tt><tt class="py-op">,</tt> <tt id="link-11" class="py-name"><a title="sqs" class="py-name" href="#" onclick="return doclink('link-11', 'sqs', 'link-0');">sqs</a></tt></tt><tt class="py-op">.</tt><tt id="link-12" class="py-name" targets="Variable sqs.VERSION=sqs-module.html#VERSION"><a title="sqs.VERSION" class="py-name" href="#" onclick="return doclink('link-12', 'VERSION', 'link-12');">VERSION</a></tt></tt><tt class="py-op">,</tt> <tt class="py-name">signature</tt><tt class="py-op">)</tt> </tt>
<tt class="py-lineno">143</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno">144</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">protocol</tt> <tt class="py-op">+</tt> <tt class="py-string">'://'</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">server_name</tt> <tt class="py-op">+</tt> <tt class="py-name">path</tt> <tt class="py-op">+</tt> <tt class="py-name">arg_div</tt> <tt class="py-op">+</tt> <tt class="py-name">query_part</tt> </tt>
</div><tt class="py-lineno">145</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno">146</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator.create_queue"></a><div id="SQSGenerator.create_queue-def"><tt class="py-lineno">147</tt> <a class="py-toggle" href="#" id="SQSGenerator.create_queue-toggle" onclick="return toggle('SQSGenerator.create_queue');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#create_queue">create_queue</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">,</tt> <tt class="py-param">timeout</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator.create_queue-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator.create_queue-expanded"><tt class="py-lineno">148</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<tt class="py-lineno">149</tt>  <tt class="py-line"><tt class="py-docstring">        Create a queue.</tt> </tt>
<tt class="py-lineno">150</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<tt class="py-lineno">151</tt>  <tt class="py-line"><tt class="py-docstring">        @param name:    The name to use for the Queue created.</tt> </tt>
<tt class="py-lineno">152</tt>  <tt class="py-line"><tt class="py-docstring">                        The Queue name must be unique for all queues created by</tt> </tt>
<tt class="py-lineno">153</tt>  <tt class="py-line"><tt class="py-docstring">                        the given Access Key ID.</tt> </tt>
<tt class="py-lineno">154</tt>  <tt class="py-line"><tt class="py-docstring">        @type  name:    string</tt> </tt>
<tt class="py-lineno">155</tt>  <tt class="py-line"><tt class="py-docstring">        @param timeout: Default visibility timeout for this Queue.</tt> </tt>
<tt class="py-lineno">156</tt>  <tt class="py-line"><tt class="py-docstring">                        If this parameter is not included, the default value is</tt> </tt>
<tt class="py-lineno">157</tt>  <tt class="py-line"><tt class="py-docstring">                        set to 30 seconds</tt> </tt>
<tt class="py-lineno">158</tt>  <tt class="py-line"><tt class="py-docstring">        @type  timeout: int</tt> </tt>
<tt class="py-lineno">159</tt>  <tt class="py-line"><tt class="py-docstring">        @return:        Authenticated URL for creating a new Queue.</tt> </tt>
<tt class="py-lineno">160</tt>  <tt class="py-line"><tt class="py-docstring">        @rtype:         string</tt> </tt>
<tt class="py-lineno">161</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<tt class="py-lineno">162</tt>  <tt class="py-line">        <tt class="py-name">params</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> </tt>
<tt class="py-lineno">163</tt>  <tt class="py-line">            <tt class="py-string">'Action'</tt>    <tt class="py-op">:</tt> <tt class="py-string">'CreateQueue'</tt><tt class="py-op">,</tt> </tt>
<tt class="py-lineno">164</tt>  <tt class="py-line">            <tt class="py-string">'QueueName'</tt> <tt class="py-op">:</tt> <tt class="py-name">name</tt> </tt>
<tt class="py-lineno">165</tt>  <tt class="py-line">        <tt class="py-op">}</tt> </tt>
<tt class="py-lineno">166</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">timeout</tt><tt class="py-op">:</tt> </tt>
<tt class="py-lineno">167</tt>  <tt class="py-line">            <tt class="py-name">params</tt><tt class="py-op">[</tt><tt class="py-string">'DefaultVisibilityTimeout'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">timeout</tt> </tt>
<tt class="py-lineno">168</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name" targets="Method sqs.generator.SQSGenerator._generate()=sqs.generator.SQSGenerator-class.html#_generate"><a title="sqs.generator.SQSGenerator._generate" class="py-name" href="#" onclick="return doclink('link-13', '_generate', 'link-13');">_generate</a></tt></tt><tt class="py-op">(</tt><tt class="py-string">'GET'</tt><tt class="py-op">,</tt> <tt class="py-name">params</tt><tt class="py-op">=</tt><tt class="py-name">params</tt><tt class="py-op">)</tt> </tt>
</div><tt class="py-lineno">169</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno">170</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator.list_queues"></a><div id="SQSGenerator.list_queues-def"><tt class="py-lineno">171</tt> <a class="py-toggle" href="#" id="SQSGenerator.list_queues-toggle" onclick="return toggle('SQSGenerator.list_queues');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#list_queues">list_queues</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">prefix</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator.list_queues-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator.list_queues-expanded"><tt class="py-lineno">172</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<tt class="py-lineno">173</tt>  <tt class="py-line"><tt class="py-docstring">        List all queues or queues with a certan prefix.</tt> </tt>
<tt class="py-lineno">174</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<tt class="py-lineno">175</tt>  <tt class="py-line"><tt class="py-docstring">        @param prefix: This parameter can be used to filter results returned.</tt> </tt>
<tt class="py-lineno">176</tt>  <tt class="py-line"><tt class="py-docstring">                       When specified, only queues with queue names beginning</tt> </tt>
<tt class="py-lineno">177</tt>  <tt class="py-line"><tt class="py-docstring">                       with the specified string are returned.</tt> </tt>
<tt class="py-lineno">178</tt>  <tt class="py-line"><tt class="py-docstring">        @type  prefix: string</tt> </tt>
<tt class="py-lineno">179</tt>  <tt class="py-line"><tt class="py-docstring">        @return:       Authenticated URL for listing Queues.</tt> </tt>
<tt class="py-lineno">180</tt>  <tt class="py-line"><tt class="py-docstring">        @rtype:        string</tt> </tt>
<tt class="py-lineno">181</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<tt class="py-lineno">182</tt>  <tt class="py-line">        <tt class="py-name">params</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> <tt class="py-string">'Action'</tt>    <tt class="py-op">:</tt> <tt class="py-string">'ListQueues'</tt> <tt class="py-op">}</tt> </tt>
<tt class="py-lineno">183</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">prefix</tt><tt class="py-op">:</tt> </tt>
<tt class="py-lineno">184</tt>  <tt class="py-line">            <tt class="py-name">params</tt><tt class="py-op">[</tt><tt class="py-string">'QueueNamePrefix'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">prefix</tt> </tt>
<tt class="py-lineno">185</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name"><a title="sqs.generator.SQSGenerator._generate" class="py-name" href="#" onclick="return doclink('link-14', '_generate', 'link-13');">_generate</a></tt></tt><tt class="py-op">(</tt><tt class="py-string">'GET'</tt><tt class="py-op">,</tt> <tt class="py-name">params</tt><tt class="py-op">=</tt><tt class="py-name">params</tt><tt class="py-op">)</tt> </tt>
</div><tt class="py-lineno">186</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno">187</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator.delete_queue"></a><div id="SQSGenerator.delete_queue-def"><tt class="py-lineno">188</tt> <a class="py-toggle" href="#" id="SQSGenerator.delete_queue-toggle" onclick="return toggle('SQSGenerator.delete_queue');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#delete_queue">delete_queue</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">queue_url</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator.delete_queue-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator.delete_queue-expanded"><tt class="py-lineno">189</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<tt class="py-lineno">190</tt>  <tt class="py-line"><tt class="py-docstring">        Delete a queue.</tt> </tt>
<tt class="py-lineno">191</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<tt class="py-lineno">192</tt>  <tt class="py-line"><tt class="py-docstring">        @param queue_url: Queue url</tt> </tt>
<tt class="py-lineno">193</tt>  <tt class="py-line"><tt class="py-docstring">        @type  queue_url: string</tt> </tt>
<tt class="py-lineno">194</tt>  <tt class="py-line"><tt class="py-docstring">        @return:          Authenticated URL for deleting queue</tt> </tt>
<tt class="py-lineno">195</tt>  <tt class="py-line"><tt class="py-docstring">        @rtype:           string</tt> </tt>
<tt class="py-lineno">196</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<tt class="py-lineno">197</tt>  <tt class="py-line">        <tt class="py-name">params</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> <tt class="py-string">'Action'</tt> <tt class="py-op">:</tt> <tt class="py-string">'DeleteQueue'</tt> <tt class="py-op">}</tt> </tt>
<tt class="py-lineno">198</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-15" class="py-name"><a title="sqs.generator.SQSGenerator._generate" class="py-name" href="#" onclick="return doclink('link-15', '_generate', 'link-13');">_generate</a></tt></tt><tt class="py-op">(</tt><tt class="py-string">'GET'</tt><tt class="py-op">,</tt> <tt class="py-name">queue</tt><tt class="py-op">=</tt><tt class="py-name">queue_url</tt><tt class="py-op">,</tt> <tt class="py-name">params</tt><tt class="py-op">=</tt><tt class="py-name">params</tt><tt class="py-op">)</tt> </tt>
</div><tt class="py-lineno">199</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno">200</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator.send_message"></a><div id="SQSGenerator.send_message-def"><tt class="py-lineno">201</tt> <a class="py-toggle" href="#" id="SQSGenerator.send_message-toggle" onclick="return toggle('SQSGenerator.send_message');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#send_message">send_message</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">queue_url</tt><tt class="py-op">,</tt> <tt class="py-param">message</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator.send_message-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator.send_message-expanded"><tt class="py-lineno">202</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<tt class="py-lineno">203</tt>  <tt class="py-line"><tt class="py-docstring">        Save a message into Queue.</tt> </tt>
<tt class="py-lineno">204</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<tt class="py-lineno">205</tt>  <tt class="py-line"><tt class="py-docstring">        @param queue_url: URL for the Queue in which the message should be saved</tt> </tt>
<tt class="py-lineno">206</tt>  <tt class="py-line"><tt class="py-docstring">        @type  queue_url: string</tt> </tt>
<tt class="py-lineno">207</tt>  <tt class="py-line"><tt class="py-docstring">        @param message:   Message body</tt> </tt>
<tt class="py-lineno">208</tt>  <tt class="py-line"><tt class="py-docstring">        @type  message:   string</tt> </tt>
<tt class="py-lineno">209</tt>  <tt class="py-line"><tt class="py-docstring">        @return:          Authenticated URL for saving message into Queue</tt> </tt>
<tt class="py-lineno">210</tt>  <tt class="py-line"><tt class="py-docstring">        @rtype:           string</tt> </tt>
<tt class="py-lineno">211</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<tt class="py-lineno">212</tt>  <tt class="py-line">        <tt class="py-name">params</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> </tt>
<tt class="py-lineno">213</tt>  <tt class="py-line">            <tt class="py-string">'Action'</tt> <tt class="py-op">:</tt> <tt class="py-string">'SendMessage'</tt><tt class="py-op">,</tt> </tt>
<tt class="py-lineno">214</tt>  <tt class="py-line">            <tt class="py-string">'MessageBody'</tt> <tt class="py-op">:</tt> <tt class="py-name">urllib</tt><tt class="py-op">.</tt><tt class="py-name">quote</tt><tt class="py-op">(</tt><tt class="py-name">message</tt><tt class="py-op">)</tt> </tt>
<tt class="py-lineno">215</tt>  <tt class="py-line">        <tt class="py-op">}</tt> </tt>
<tt class="py-lineno">216</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-16" class="py-name"><a title="sqs.generator.SQSGenerator._generate" class="py-name" href="#" onclick="return doclink('link-16', '_generate', 'link-13');">_generate</a></tt></tt><tt class="py-op">(</tt><tt class="py-string">'GET'</tt><tt class="py-op">,</tt> <tt class="py-name">queue</tt><tt class="py-op">=</tt><tt class="py-name">queue_url</tt><tt class="py-op">,</tt> <tt class="py-name">params</tt><tt class="py-op">=</tt><tt class="py-name">params</tt><tt class="py-op">)</tt> </tt>
</div><tt class="py-lineno">217</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator.receave_message"></a><div id="SQSGenerator.receave_message-def"><tt class="py-lineno">218</tt> <a class="py-toggle" href="#" id="SQSGenerator.receave_message-toggle" onclick="return toggle('SQSGenerator.receave_message');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#receave_message">receave_message</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">queue_url</tt><tt class="py-op">,</tt> <tt class="py-param">number</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">timeout</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator.receave_message-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator.receave_message-expanded"><tt class="py-lineno">219</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<tt class="py-lineno">220</tt>  <tt class="py-line"><tt class="py-docstring">        Get message(s) from Queue.</tt> </tt>
<tt class="py-lineno">221</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<tt class="py-lineno">222</tt>  <tt class="py-line"><tt class="py-docstring">        @param queue_url: URL for the Queue from which the message should be</tt> </tt>
<tt class="py-lineno">223</tt>  <tt class="py-line"><tt class="py-docstring">                          relatived</tt> </tt>
<tt class="py-lineno">224</tt>  <tt class="py-line"><tt class="py-docstring">        @type  queue_url: string</tt> </tt>
<tt class="py-lineno">225</tt>  <tt class="py-line"><tt class="py-docstring">        @param number:    Maximum number of messages to return.</tt> </tt>
<tt class="py-lineno">226</tt>  <tt class="py-line"><tt class="py-docstring">                          If the number of messages in the queue is less than</tt> </tt>
<tt class="py-lineno">227</tt>  <tt class="py-line"><tt class="py-docstring">                          value specified by NumberOfMessages, then the number</tt> </tt>
<tt class="py-lineno">228</tt>  <tt class="py-line"><tt class="py-docstring">                          of messages returned is up to the number of messages</tt> </tt>
<tt class="py-lineno">229</tt>  <tt class="py-line"><tt class="py-docstring">                          in the queue. Not necessarily all the messages in the</tt> </tt>
<tt class="py-lineno">230</tt>  <tt class="py-line"><tt class="py-docstring">                          queue will be returned. If no value is provided, the</tt> </tt>
<tt class="py-lineno">231</tt>  <tt class="py-line"><tt class="py-docstring">                          default value of 1 is used.</tt> </tt>
<tt class="py-lineno">232</tt>  <tt class="py-line"><tt class="py-docstring">        @type  number:    int</tt> </tt>
<tt class="py-lineno">233</tt>  <tt class="py-line"><tt class="py-docstring">        @param timeout:   The duration, in seconds, that the messages are</tt> </tt>
<tt class="py-lineno">234</tt>  <tt class="py-line"><tt class="py-docstring">                          visible in the queue. If no value is specified, the</tt> </tt>
<tt class="py-lineno">235</tt>  <tt class="py-line"><tt class="py-docstring">                          default value for the queue is used</tt> </tt>
<tt class="py-lineno">236</tt>  <tt class="py-line"><tt class="py-docstring">        @type  timeout:   int</tt> </tt>
<tt class="py-lineno">237</tt>  <tt class="py-line"><tt class="py-docstring">        @return:          Authenticated URL for retreaving messages from Queue</tt> </tt>
<tt class="py-lineno">238</tt>  <tt class="py-line"><tt class="py-docstring">        @rtype:           string</tt> </tt>
<tt class="py-lineno">239</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<tt class="py-lineno">240</tt>  <tt class="py-line">        <tt class="py-name">params</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> <tt class="py-string">'Action'</tt> <tt class="py-op">:</tt> <tt class="py-string">'ReceiveMessage'</tt> <tt class="py-op">}</tt> </tt>
<tt class="py-lineno">241</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">number</tt><tt class="py-op">:</tt> <tt class="py-name">params</tt><tt class="py-op">[</tt><tt class="py-string">'NumberOfMessages'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">number</tt> </tt>
<tt class="py-lineno">242</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">timeout</tt><tt class="py-op">:</tt> <tt class="py-name">params</tt><tt class="py-op">[</tt><tt class="py-string">'VisibilityTimeout'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">timeout</tt> </tt>
<tt class="py-lineno">243</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-17" class="py-name"><a title="sqs.generator.SQSGenerator._generate" class="py-name" href="#" onclick="return doclink('link-17', '_generate', 'link-13');">_generate</a></tt></tt><tt class="py-op">(</tt><tt class="py-string">'GET'</tt><tt class="py-op">,</tt> <tt class="py-name">queue</tt><tt class="py-op">=</tt><tt class="py-name">queue_url</tt><tt class="py-op">,</tt> <tt class="py-name">params</tt><tt class="py-op">=</tt><tt class="py-name">params</tt><tt class="py-op">)</tt> </tt>
</div><tt class="py-lineno">244</tt>  <tt class="py-line">         </tt>
<tt class="py-lineno">245</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator.delete_message"></a><div id="SQSGenerator.delete_message-def"><tt class="py-lineno">246</tt> <a class="py-toggle" href="#" id="SQSGenerator.delete_message-toggle" onclick="return toggle('SQSGenerator.delete_message');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#delete_message">delete_message</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">queue_url</tt><tt class="py-op">,</tt> <tt class="py-param">message_id</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator.delete_message-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator.delete_message-expanded"><tt class="py-lineno">247</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<tt class="py-lineno">248</tt>  <tt class="py-line"><tt class="py-docstring">        Delete a message from Queue.</tt> </tt>
<tt class="py-lineno">249</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<tt class="py-lineno">250</tt>  <tt class="py-line"><tt class="py-docstring">        @param queue_url:  URL for the Queue from which the message should be deleted</tt> </tt>
<tt class="py-lineno">251</tt>  <tt class="py-line"><tt class="py-docstring">        @type  queue_url:  string</tt> </tt>
<tt class="py-lineno">252</tt>  <tt class="py-line"><tt class="py-docstring">        @param message_id: The ID of the message to delete</tt> </tt>
<tt class="py-lineno">253</tt>  <tt class="py-line"><tt class="py-docstring">        @type  message_id: string</tt> </tt>
<tt class="py-lineno">254</tt>  <tt class="py-line"><tt class="py-docstring">        @return:           Authenticated URL for deleting message from Queue</tt> </tt>
<tt class="py-lineno">255</tt>  <tt class="py-line"><tt class="py-docstring">        @rtype:            string</tt> </tt>
<tt class="py-lineno">256</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<tt class="py-lineno">257</tt>  <tt class="py-line">        <tt class="py-name">params</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> </tt>
<tt class="py-lineno">258</tt>  <tt class="py-line">            <tt class="py-string">'Action'</tt> <tt class="py-op">:</tt> <tt class="py-string">'DeleteMessage'</tt><tt class="py-op">,</tt> </tt>
<tt class="py-lineno">259</tt>  <tt class="py-line">            <tt class="py-string">'MessageId'</tt> <tt class="py-op">:</tt> <tt class="py-name">message_id</tt> </tt>
<tt class="py-lineno">260</tt>  <tt class="py-line">        <tt class="py-op">}</tt> </tt>
<tt class="py-lineno">261</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-18" class="py-name"><a title="sqs.generator.SQSGenerator._generate" class="py-name" href="#" onclick="return doclink('link-18', '_generate', 'link-13');">_generate</a></tt></tt><tt class="py-op">(</tt><tt class="py-string">'GET'</tt><tt class="py-op">,</tt> <tt class="py-name">queue</tt><tt class="py-op">=</tt><tt class="py-name">queue_url</tt><tt class="py-op">,</tt> <tt class="py-name">params</tt><tt class="py-op">=</tt><tt class="py-name">params</tt><tt class="py-op">)</tt> </tt>
</div><tt class="py-lineno">262</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno">263</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator.peek_message"></a><div id="SQSGenerator.peek_message-def"><tt class="py-lineno">264</tt> <a class="py-toggle" href="#" id="SQSGenerator.peek_message-toggle" onclick="return toggle('SQSGenerator.peek_message');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#peek_message">peek_message</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">queue_url</tt><tt class="py-op">,</tt> <tt class="py-param">message_id</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator.peek_message-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator.peek_message-expanded"><tt class="py-lineno">265</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<tt class="py-lineno">266</tt>  <tt class="py-line"><tt class="py-docstring">        Returns a preview of the message specified in the MessageId parameter.</tt> </tt>
<tt class="py-lineno">267</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<tt class="py-lineno">268</tt>  <tt class="py-line"><tt class="py-docstring">        The message is returned regardless of the VisibilityTimeout state on the</tt> </tt>
<tt class="py-lineno">269</tt>  <tt class="py-line"><tt class="py-docstring">        queue. The visibility state is not modified when PeekMessage is used,</tt> </tt>
<tt class="py-lineno">270</tt>  <tt class="py-line"><tt class="py-docstring">        thereby not affecting which messages get returned from a subsequent</tt> </tt>
<tt class="py-lineno">271</tt>  <tt class="py-line"><tt class="py-docstring">        ReceiveMessage request.</tt> </tt>
<tt class="py-lineno">272</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<tt class="py-lineno">273</tt>  <tt class="py-line"><tt class="py-docstring">        @param queue_url:  URL for the Queue from which the message should be peeked</tt> </tt>
<tt class="py-lineno">274</tt>  <tt class="py-line"><tt class="py-docstring">        @type  queue_url:  string</tt> </tt>
<tt class="py-lineno">275</tt>  <tt class="py-line"><tt class="py-docstring">        @param message_id: The ID of the message to retreave</tt> </tt>
<tt class="py-lineno">276</tt>  <tt class="py-line"><tt class="py-docstring">        @type  message_id: string</tt> </tt>
<tt class="py-lineno">277</tt>  <tt class="py-line"><tt class="py-docstring">        @return:           Authenticated URL for retreaveing a message</tt> </tt>
<tt class="py-lineno">278</tt>  <tt class="py-line"><tt class="py-docstring">        @rtype:            string</tt> </tt>
<tt class="py-lineno">279</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<tt class="py-lineno">280</tt>  <tt class="py-line">        <tt class="py-name">params</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> </tt>
<tt class="py-lineno">281</tt>  <tt class="py-line">            <tt class="py-string">'Action'</tt> <tt class="py-op">:</tt> <tt class="py-string">'PeekMessage'</tt><tt class="py-op">,</tt> </tt>
<tt class="py-lineno">282</tt>  <tt class="py-line">            <tt class="py-string">'MessageId'</tt> <tt class="py-op">:</tt> <tt class="py-name">message_id</tt> </tt>
<tt class="py-lineno">283</tt>  <tt class="py-line">        <tt class="py-op">}</tt> </tt>
<tt class="py-lineno">284</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-19" class="py-name"><a title="sqs.generator.SQSGenerator._generate" class="py-name" href="#" onclick="return doclink('link-19', '_generate', 'link-13');">_generate</a></tt></tt><tt class="py-op">(</tt><tt class="py-string">'GET'</tt><tt class="py-op">,</tt> <tt class="py-name">queue</tt><tt class="py-op">=</tt><tt class="py-name">queue_url</tt><tt class="py-op">,</tt> <tt class="py-name">params</tt><tt class="py-op">=</tt><tt class="py-name">params</tt><tt class="py-op">)</tt> </tt>
</div><tt class="py-lineno">285</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator.set_timeout"></a><div id="SQSGenerator.set_timeout-def"><tt class="py-lineno">286</tt> <a class="py-toggle" href="#" id="SQSGenerator.set_timeout-toggle" onclick="return toggle('SQSGenerator.set_timeout');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#set_timeout">set_timeout</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator.set_timeout-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator.set_timeout-expanded"><tt class="py-lineno">287</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
</div><tt class="py-lineno">288</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno">289</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator.get_timeout"></a><div id="SQSGenerator.get_timeout-def"><tt class="py-lineno">290</tt> <a class="py-toggle" href="#" id="SQSGenerator.get_timeout-toggle" onclick="return toggle('SQSGenerator.get_timeout');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#get_timeout">get_timeout</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator.get_timeout-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator.get_timeout-expanded"><tt class="py-lineno">291</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
</div><tt class="py-lineno">292</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno">293</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator.add_grant"></a><div id="SQSGenerator.add_grant-def"><tt class="py-lineno">294</tt> <a class="py-toggle" href="#" id="SQSGenerator.add_grant-toggle" onclick="return toggle('SQSGenerator.add_grant');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#add_grant">add_grant</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator.add_grant-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator.add_grant-expanded"><tt class="py-lineno">295</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
</div><tt class="py-lineno">296</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno">297</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator.get_grant"></a><div id="SQSGenerator.get_grant-def"><tt class="py-lineno">298</tt> <a class="py-toggle" href="#" id="SQSGenerator.get_grant-toggle" onclick="return toggle('SQSGenerator.get_grant');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#get_grant">get_grant</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator.get_grant-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator.get_grant-expanded"><tt class="py-lineno">299</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
</div><tt class="py-lineno">300</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno">301</tt>  <tt class="py-line"> </tt>
<a name="SQSGenerator.del_grant"></a><div id="SQSGenerator.del_grant-def"><tt class="py-lineno">302</tt> <a class="py-toggle" href="#" id="SQSGenerator.del_grant-toggle" onclick="return toggle('SQSGenerator.del_grant');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sqs.generator.SQSGenerator-class.html#del_grant">del_grant</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SQSGenerator.del_grant-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SQSGenerator.del_grant-expanded"><tt class="py-lineno">303</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
</div></div><tt class="py-lineno">304</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="sqs-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">Generated by Epydoc
        3.0alpha3 on Wed Sep 20 12:10:48 2006</td>
    <td align="right" class="footer">
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie()
  // -->
</script>
  
</body>
</html>
